package com.yc.learn.user.pojo;

import java.util.Date;

import com.yc.learn.job.pojo.Job;
import com.yc.learn.majors.pojo.Majors;

public class User {
    private Integer userId;

    private String userName;

    private String userLoginName;

    private String userPwd;

    private String userPhone;

    private String userEmail;

    private Date userHiredate;

    private Majors majors;

    private Job job;

    private String userIntro;

    private String userPic;

    public User() {
		super();
	}

	public User(String userName, String userLoginName, String userPwd, String userPhone, String userEmail,
			Date userHiredate, Majors majors, Job job, String userIntro, String userPic) {
		super();
		this.userName = userName;
		this.userLoginName = userLoginName;
		this.userPwd = userPwd;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userHiredate = userHiredate;
		this.majors = majors;
		this.job = job;
		this.userIntro = userIntro;
		this.userPic = userPic;
	}

	public User(Integer userId, String userName, String userLoginName, String userPwd, String userPhone,
			String userEmail, Date userHiredate, Majors majors, Job job, String userIntro, String userPic) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userLoginName = userLoginName;
		this.userPwd = userPwd;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.userHiredate = userHiredate;
		this.majors = majors;
		this.job = job;
		this.userIntro = userIntro;
		this.userPic = userPic;
	}

	public User(Integer userId, String userName, String userPhone, String userEmail, Majors majors, Job job,
			String userIntro) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userPhone = userPhone;
		this.userEmail = userEmail;
		this.majors = majors;
		this.job = job;
		this.userIntro = userIntro;
	}

	public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName == null ? null : userLoginName.trim();
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd == null ? null : userPwd.trim();
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone == null ? null : userPhone.trim();
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail == null ? null : userEmail.trim();
    }

    public Date getUserHiredate() {
        return userHiredate;
    }

    public void setUserHiredate(Date userHiredate) {
        this.userHiredate = userHiredate;
    }

    public Majors getMajors() {
        return majors;
    }

    public void setMajors(Majors majors) {
        this.majors = majors;
    }

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    public String getUserIntro() {
        return userIntro;
    }

    public void setUserIntro(String userIntro) {
        this.userIntro = userIntro == null ? null : userIntro.trim();
    }

    public String getUserPic() {
        return userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic == null ? null : userPic.trim();
    }

	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", userLoginName=" + userLoginName + ", userPwd="
				+ userPwd + ", userPhone=" + userPhone + ", userEmail=" + userEmail + ", userHiredate=" + userHiredate
				+ ", majors=" + majors + ", job=" + job + ", userIntro=" + userIntro + ", userPic=" + userPic + "]";
	}
}